package javase.chixing.thread_synchronized;

//通过实现 Runnable 接口创建线程方法
class ThreadB implements Runnable{
    @Override
    public void run() {
        System.out.println("线程B正在执行....");
        //获取30以内的奇数
        for (int i = 2; i <= 30; i+=2) {
            System.out.println("threadB>>>"+i);
        }
    }
}
